sys_datasource_config_module.controller('SysDataSourceConfigController',
                              ['$scope', 'toastr', 'AppUtil','SysDataSourceConfigService',
                               SysDataSourceConfigController]);
function SysDataSourceConfigController($scope, toastr, AppUtil, SysDataSourceConfigService) {
	$scope.dataSourceConfigs = {};
	loadSysDataSourceConfigInfo();
	function loadSysDataSourceConfigInfo() {
        SysDataSourceConfigService.load_sys_datasource_config().then(function (result) {
            $scope.dataSourceConfigs = result;
        }, function (result) {
            AppUtil.showErrorMsg(result);
        });
    }
}